#include<bits/stdc++.h>
#define ull unsigned long long
#define ll long long
using namespace std;
const int N=1e5+3;
int n;
int a[N];
int read(){
	int x;
	scanf("%d",&x);
	return x;
}
int l,r,ans;
bool cmp(int x,int y){
	return x<y;
}
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	n=read();
	l=1,r=1;
	ans=n;
	for(int i=1;i<=n;i++)a[i]=read();
	sort(a+1,a+n+1,cmp);
	while(r<=n){
		while(a[r]==a[l])r++;
		if(a[r]>a[l]){
			r++;
			l++;
			ans--;
		}
	}
	printf("%d",ans);
	fclose(stdin);
	fclose(stdout);
	return 0;
}
